package com.yao.dto;

import com.yao.po.ShoppingCart;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;


@Data
public class ShoppingDto {
    private BigDecimal totalAmount;
    private int totalCount;
    private List<ShoppingCart> cartVoList;

    public ShoppingDto() {
    }

    public ShoppingDto(BigDecimal totalAmount, int totalCount, List<ShoppingCart> cartVoList) {
        this.totalAmount = totalAmount;
        this.totalCount = totalCount;
        this.cartVoList = cartVoList;
    }

    /**
     * 获取
     * @return totalAmount
     */
    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    /**
     * 设置
     * @param totalAmount
     */
    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    /**
     * 获取
     * @return totalCount
     */
    public int getTotalCount() {
        return totalCount;
    }

    /**
     * 设置
     * @param totalCount
     */
    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    /**
     * 获取
     * @return cartVoList
     */
    public List<ShoppingCart> getCartVoList() {
        return cartVoList;
    }

    /**
     * 设置
     * @param cartVoList
     */
    public void setCartVoList(List<ShoppingCart> cartVoList) {
        this.cartVoList = cartVoList;
    }

    public String toString() {
        return "ShoppingDto{totalAmount = " + totalAmount + ", totalCount = " + totalCount + ", cartVoList = " + cartVoList + "}";
    }
}
